]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
grabHelper: Treat the current grabbed actor as a grabbed actor
authorJasper St. Pierre <jstpierre@mecheye.net>
Mon, 26 Nov 2012 19:47:59 +0000 (14:47 -0500)
committerJasper St. Pierre <jstpierre@mecheye.net>
Sat, 8 Dec 2012 00:53:47 +0000 (19:53 -0500)
This should be obvious, but I guess it wasn't necessary for the
message tray case.

https://bugzilla.gnome.org/show_bug.cgi?id=689109

js/ui/grabHelper.js

index 4104c8d5657f9aeda108c03e8254e2c0d2dbd823..aacce4334bfbe5d9718dd3d694471bb76550a5ec 100644 (file)
@@ -77,9 +77,12 @@ const GrabHelper = new Lang.Class({
     },
 
     _isWithinGrabbedActor: function(actor) {
+       let currentActor = this.currentGrab.actor;
         while (actor) {
             if (this._actors.indexOf(actor) != -1)
                 return true;
+            if (actor == currentActor)
+                return true;
             actor = actor.get_parent();
         }
         return false;